package com.itany.nmms.service;

import com.itany.nmms.entity.Staff;
import com.itany.nmms.exception.CodeErrorException;
import com.itany.nmms.exception.RequestParamErrorException;
import com.itany.nmms.exception.StaffNotExistException;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/8/1 13:45
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface StaffService {

    /**
     * 员工登录
     * @param loginName 账号
     * @param password  密码
     * @param role      角色
     * @param code      用户输入的验证码
     * @param image     验证码图片的内容
     * @return
     */
    public Staff login(String loginName,String password,String role,String code,String image) throws RequestParamErrorException, CodeErrorException, StaffNotExistException;

}
